package com.drinkian;

import com.drinkian.business.good.entity.po.Good;
import com.drinkian.business.good.mapper.GoodMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.text.DecimalFormat;

@SpringBootTest
public class test {
    @Test
    public void getDouble(){
        String str = "0";
        DecimalFormat df1 = new DecimalFormat("#.00");
        DecimalFormat df2 = new DecimalFormat("#0.00");
        int a = 10;
        System.out.println();
        System.out.println(df1.format(Double.valueOf(str)*100));
        System.out.println(df2.format(Double.valueOf(str)*100));
    }


    @Autowired
    private GoodMapper goodMapper;
    @Test
    public void testMapper(){

    }
}
